﻿using RpcHelper.Validate;
namespace Wedonek.RpcStore.Service.Model
{
        /// <summary>
        /// 服务中心
        /// </summary>
        public class RpcControl
        {
                /// <summary>
                /// 服务中心链接的IP地址
                /// </summary>
                [NullValidate ("rpc.control.server.ip.null")]
                [FormatValidate ("rpc.control.server.ip.error", ValidateFormat.IP)]
                public string ServerIp
                {
                        get;
                        set;
                }
                /// <summary>
                /// 端口号
                /// </summary>
                [NumValidate ("rpc.control.port.error", 1)]
                public int Port { get; set; }
                /// <summary>
                /// 所在区域机房
                /// </summary>
                [NumValidate ("rpc.region.id.error", 1)]
                public long RegionId { get; set; }
                /// <summary>
                /// 服务中心说明
                /// </summary>
                [LenValidate ("rpc.control.show.len", 0, 255)]
                public string Show { get; set; }
        }
}
